package org.wevil.entity.view;

import org.wevil.entity.pk.PKViewUser;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

@IdClass(PKViewUser.class)
@Entity
@Getter
@Setter
public class ViewUser {
    @Id
    private Integer userId;
    private String username;
    private Integer roleId;
    private String roleName;
    @Id
    private Integer menuId;
    private String menuName;
    private String url;
    private Integer pid;
    private Integer ord;
}
